package com.shenzw.mybatisdemo.config.pojo;

import com.fasterxml.jackson.annotation.JsonInclude;
import lombok.AllArgsConstructor;
import lombok.Getter;
import lombok.NoArgsConstructor;

import java.io.Serializable;

/**
 * 统一返回结果实体
 *
 * @author shenzw
 * @date 2023/10/29
 */
@Getter
@NoArgsConstructor
@AllArgsConstructor
public class ResultInfo implements Serializable {

    /**
     * 响应结果【成功，失败】
     */
    protected Boolean result;

    /**
     * 相应码
     */
    protected Integer code;

    /**
     * 响应消息
     */
    @JsonInclude(JsonInclude.Include.NON_NULL)
    protected String message;


}
